﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Windows.Forms;
namespace YT.Commons
{
    public class SysVar
    {

              
        private static string m_strErrTitle = string.Empty;
        private static string m_strWarnTitle = string.Empty;
        private static string m_strSaveChange = string.Empty;
        private static string m_strInformation = string.Empty;
        private static string m_strConfirm = string.Empty;
        private static string m_strQuery = string.Empty;
        private static string m_strTraderPrompt = string.Empty;
        private static string m_strCheckPrompt = string.Empty;
        private static int m_iMaxLocLength = 3;
        private static string m_Password = string.Empty;
        private static bool m_blnAbleToExcel = true;
        public static ArrayList marrFormList = new ArrayList ();
        private static string m_strServerName = "";
        private static string m_strDatabaseName = "";
        private static string m_strUserName = "";
        private static string m_intCodeSignNo = "";
        private static string m_SickRecID = "";
        public  static string CustomerName=string.Empty ;
        public static Form mfrmMdiPar = null ;
        public static bool m_IsNose = false;
        private static string m_strHospitalID = string.Empty;
        private static string m_strHospitalName = string.Empty;
        private static MenuInfo  mCurrentMenuInfo ;
        #region All using woodpro customers
        public class DefineCompany
        {
            #region Company CodeSign#
            public static int DefaultCompany { get { return 0; } }
            #endregion
            #region Company Name
            public static string DefaultCompany_Name { get { return "DefaultCompany"; } }           
            #endregion
        }
        #endregion
        public static MenuInfo CurrentMenuInfo
        {
            get
            {
                return mCurrentMenuInfo;
            }
            set
            {
                mCurrentMenuInfo = value;
            }
        }
        public static string ServerName
        {
            get
            {
                return m_strServerName;
            }
            set
            {
                m_strServerName = value;
            }
        }

        public static string HospitalID
        {
            get
            {
                return m_strHospitalID;
            }
            set
            {
                m_strHospitalID = value;
            }
        }

        public static string HospitalName
        {
            get
            {
                return m_strHospitalName;
            }
            set
            {
                m_strHospitalName = value;
            }
        }

        public static string DatabaseName
        {
            get
            {
                return m_strDatabaseName;
            }
            set
            {
                m_strDatabaseName = value;
            }
        }


        public static string UserName
        {
            get
            {
                return m_strUserName;                
            }
            set
            {
                m_strUserName = value;                
            }
        }
        public static string SickRecID
        {
            get
            {
                return m_SickRecID;
            }
            set
            {
                m_SickRecID = value;
            }
        }

        public static bool  IsNose
        {
            get
            {
                return m_IsNose;
            }
            set
            {
                m_IsNose = value;
            }
        }
        
        public static string Password
        {
            get
            {
                return m_Password;
            }
            set
            {
                m_Password = value;
            }
        }
        public static string WarnTitle
        {
            get
            {
                return m_strWarnTitle;
            }
            set
            {
                m_strWarnTitle = value;
            }
        }
        public static string  CodeSignNo
        {
            get
            {
                return m_intCodeSignNo;
                //					return int.Parse(HttpContext.Current.Session[Constants.CODE_SIGN_NO].ToString());
            }
            set
            {
                m_intCodeSignNo = value;
                //					HttpContext.Current.Session.Add(Constants.CODE_SIGN_NO,value);
            }
        }

       
    }
}
